package com.og.vas.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.og.vas.pojo.dto.VacInfoDTO;
import com.og.vas.pojo.entity.VaccinaInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.og.vas.pojo.query.VacInfoQuery;
import com.og.vas.pojo.vo.VacInfoListVO;
import com.og.vas.pojo.vo.VacInfoVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xzy
 * @since 2022-01-11
 */
public interface VaccinaInfoService extends IService<VaccinaInfo> {

    //添加
    void addByUid(Integer uid, VacInfoDTO vacInfoDTO);
    void addByIdCardNum(String Num,VacInfoDTO vacInfoDTO);
    void addByUserName(String userName,VacInfoDTO vacInfoDTO);
    void addByPhone(String phone,VacInfoDTO vacInfoDTO);

    //删除
    void deleteByUid(Integer uid);
    void deleteByid(Integer id);
    void deleteIdCardNum(String Num);
    void deleteByUserName(String userName);
    void deleteByPhone(String phone);


    //获取
    List<VacInfoVO> getByid(Integer uid);
    IPage<VacInfoListVO> list(Page<VacInfoListVO> page, VacInfoQuery query);

    //修改
    void update(Integer id, VacInfoDTO vacInfoDTO);

}
